package com.LC.DAO;

import com.LC.Entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDAO {

    @Select("select * from t_user")
    public List<User> findAllUser();

    @Select("select * from t_user where username = #{username}")
    public User findByUserName(String username);
}
